// com.example.aftersales.mapper.UserMapper.java
package com.example.aftersales.mapper;

import com.example.aftersales.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    User findByUsername(@Param("username") String username);
    int insert(User user);
    int updateProfile(@Param("username") String username, @Param("password") String password);
}